//
//  Networking.h
//  aixianfeng23
//
//  Created by 黄晓冬 on 17/1/3.
//  Copyright © 2017年 Huang Xiaodong. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

@interface Networking : AFHTTPSessionManager

typedef enum network
{
    GET,
    POST
}
network;


//创建AFN的单列
+(instancetype)sharedNetworking;

//网络的请求
-(void)loadDataWithMethod:(network)method url:(NSString *)urlstr parameters:(id)parameters success:(void(^)(id responseobject))successBlock failure:(void(^)(NSError *error))failureBlock;
@end
